﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.Ex.Communication.Net.Web
{
    /// <summary>
    /// POST请求特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class HttpPostAttribute : HttpMethodAbsAttribute
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="template">路由模板</param>
        public HttpPostAttribute(string template)
            : base(HttpRequestMethods.POST, template)
        {

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public HttpPostAttribute()
            : base(HttpRequestMethods.POST, null)
        {

        }
    }
}
